<script>
	import base from "@/config/baseUrl";
	import store from "@/store";
	// #ifdef APP-PLUS
	import APPUpdate from '@/uni_modules/zhouWei-APPUpdate/js_sdk/appUpdate';
	// #endif
	import {
		mpUpData,
		scene
	} from '@/config/common';
	export default {
		onLaunch(e) {
			//取出缓存数据
			store.commit('setCacheData');
			//获取二维码信息
			scene(e)
			// #ifdef H5
			uni.setStorageSync("initUrl", window.location.href);
			// #endif
			// #ifdef APP-PLUS
			// APPUpdate() //检测app更新
			plus.screen.lockOrientation("portrait-primary"); // 禁止横屏
			// #endif
		},
		onShow(e) {
			// #ifdef MP
			mpUpData() //检测小程序更新
			// #endif
		},
		onHide() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	@import './style/iconfont.scss';
	@import "./style/common.scss";
	@import "./style/iconfont_css.css";

	/* #ifndef APP-NVUE */
	page {
		background-color: #f5f5f5;
	}

	// 隐藏滚动条
	::-webkit-scrollbar {
		width: 0;
		height: 0;
		color: transparent;
	}

	/* #endif */
</style>
